package com.lam.dormitory.mapper;

import com.lam.dormitory.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lam.dormitory.entity.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lam
 * @since 2019-12-20
 */
public interface RoleMapper extends BaseMapper<Role> {
    /**
     * 通过用户Id查询角色集合
     * @param userId
     * @return
     */
    List<Role> selectRoleByUserId(Long userId);

    /**
     * 根据roleId,name查询角色集合
     * @param role
     * @return
     */
    List<Role> selectByRole(Role role);



}
